package com.kang.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * dialogue
 * @author
 */
@Data
public class Dialogue  implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 对话id
     */
    private String dialogueId;

    /**
     * 发送者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fromUserId;

    /**
     * 接收者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long toUserId;

    /**
     * 对话内容
     */
    private String msg;

    /**
     * 发送内容类型：0文字；1图片
     */
    private Integer msgType;

    /**
     * 对话类型：1私聊；2群聊；0通知
     */
    private Integer type;

    /**
     * 是否阅读：0已读、1未读
     */
    private Integer isRead;

    private Integer delFlag;
}
